package com.webflux.demo.service;

import com.webflux.demo.bean.User;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @author H
 * @date 2023/1/15
 */
public interface UserService {

    Mono<User> getUserById(Long id);

    Flux<User> getUserByUserName(String username);

    Mono<User> insertUser(User user);

}
